package com.liner.collections;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class LambdaDemo{
    public static void main(String[] args) {
        List<String> strings = new ArrayList<>();
        Collections.sort(strings, (o1, o2) -> o1.length() - o2.length());

        System.out.println("list:" + strings);
    }
}
